<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>HTML DOCUMENT</title>
</head>
<body>
<div>
<?php
	if(isset($_POST['myselect'])) {
		$option = $_POST['myselect']; // get the value from the html form
		echo("The selected value is $option<br>");		
		
		// if you want to connect to a mysql db		
		// mysql_connect("....");
		//mysql_select_db("...."
		///mysql_query("UPDATE table SET value = '$option' WHERE ....");
	}
	

?>
</div>
<fieldset>
<form method="post" name="form" action="page.php">
<label for="myselect">Select Option:</label>&nbsp;
<select name="myselect" id="myselect">
<option value="0">-- Nothing --</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
<br>
<br>
<input type="submit" name="submit" value="Submit Data">
</form>
</body>
</html>